% Z = ZEROFORMAT(X) Swap zero format between -1 and []

function z = zeroFormat(x)
    if isempty(x)
        z = -1;
    else
        z = [];
    end
end
